import {reactive} from "vue";

export const useGoods = ()=>{

    const goodsList = reactive([]);

    function getGoodsList(){
        // 获取商品列表
        return new Promise((resolve,reject)=>{
            setTimeout(()=>{
                resolve(goodsList)
            },1000)
        })
    }

    return {goodsList,getGoodsList};
}

